<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>登录</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
</head>

<body>
    <div
        style="position: fixed;background-color: #c4ffd5;top: 0;bottom: 0;left: 0;right: 0;border-radius: 5px;display: flex;">
        <form class="form-horizontal" role="form" action="/login" method="POST"
            style="margin: auto;width: 50%;background-color: #fff;padding: 10px;display: inline-block;border-radius: 10px;">
            <div class="form-group">
                <label for="user" class="col-sm-2 control-label">用户名</label>
                <div class="col-sm-10">
                    <input type="text" name="user" class="form-control" id="user" placeholder="请输入用户名">
                </div>
            </div>
            <div class="form-group">
                <label for="password" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-10">
                    <input type="password" name="password" class="form-control" id="password" placeholder="请输入密码">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default">登录</button>
                </div>
            </div>
            <div id="errAlert" class="alert alert-warning" style="display: none;">
                <a href="#" class="close" data-dismiss="alert">&times;</a>
                用户名或密码错误！
            </div>
        </form>
    </div>
    <script>
        <%- script %>
    </script>
</body>

</html>